﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <meta charset="UTF-8" th:replace="main/public :: #public_Head">
    <title>账单管理系统</title>
    <link rel="stylesheet" href="../css/public.css"/>
    <link rel="stylesheet" href="../css/style.css"/>
</head>
<body>
<!--头部-->
<header class="publicHeader" th:replace="main/public :: #public_Header">
<!--    <h1>账单管理系统</h1>-->

<!--    <div class="publicHeaderR">-->
<!--        <p><span>下午好！</span><span style="color: #fff21b"> Admin</span> , 欢迎你！</p>-->
<!--        <a href="../main/login.html">退出</a>-->
<!--    </div>-->
</header>
<!--时间-->
<section class="publicTime" th:replace="main/public :: #public_Time">
<!--    <span id="time">2028年1月1日 11:11  星期一</span>-->
<!--    <a href="#">温馨提示：为了能正常浏览，请使用高版本浏览器！（IE10+）</a>-->
</section>
<!--主体内容-->
<section class="publicMian ">
    <div class="left" th:replace="main/public :: #public_Left">
<!--        <h2 class="leftH2"><span class="span1"></span>功能列表 <span></span></h2>-->
<!--        <nav>-->
<!--            <ul class="list">-->
<!--                <li ><a href="../bill/list.html">账单管理</a></li>-->
<!--                <li id="active"><a href="../provider/list.html">供应商管理</a></li>-->
<!--                <li><a href="../user/list.html">用户管理</a></li>-->
<!--                <li><a href="../main/password.html">密码修改</a></li>-->
<!--                <li><a href="../main/login.html">退出系统</a></li>-->
<!--            </ul>-->
<!--        </nav>-->
    </div>
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>供应商管理页面 >> 供应商修改页</span>
        </div>
        <div class="providerAdd">
            <form id="updateForm" action="#" th:action="@{/provider}" th:method="post">
                <!--发送put请求修改供应商信息-->
                <!--1. 在SpringMVC中配置HiddenHttpMethodFilter（SpringBoot自动配置好了）-->
                <!--2. 页面创建一个method="post"表单-->
                <!--3. 创建一个input标签 name="_method"，value="指定请求方式"-->
                <input th:type="hidden" name="_method" value="put">
                <input th:type="hidden" name="pid" th:value="${provider.pid}">
                <input th:type="hidden" name="providerCode" th:value="${provider.providerCode}">

                <div class="">
                    <label for="providerName">供应商名称：</label>
                    <input type="text" th:value="${provider.providerName}" name="providerName" id="providerName" placeholder="测试供应商001"/>
                    <span >*</span>
                </div>
                <div>
                    <label for="people">联系人：</label>
                    <input type="text" th:value="${provider.people}" name="people" id="people" placeholder="韩露"/>
                    <span>*</span>

                </div>
                <div>
                    <label for="phone">联系电话：</label>
                    <input type="text" th:value="${provider.phone}" name="phone" id="phone" placeholder="15918230478"/>
                    <span></span>
                </div>
                <div>
                    <label for="address">联系地址：</label>
                    <input type="text" th:value="${provider.address}" name="address" id="address" placeholder="北京"/>
                    <span></span>

                </div>
                <div>
                    <label for="fax">传真：</label>
                    <input type="text" th:value="${provider.fax}" name="fax" id="fax" placeholder="15918230478"/>
                    <span></span>

                </div>
                <div>
                    <label for="describe">描述：</label>
                    <input type="text" th:value="${provider.describe}" name="describe" id="describe" placeholder="描述"/>
                    <span></span>

                </div>
                <div class="providerAddBtn">
                    <!--<a href="#">保存</a>-->
                    <!--<a href="providerlist">返回</a>-->
                    <input type="button" value="保存" onclick="$('#updateForm').submit()"/>
                    <input type="button" value="返回" onclick="history.back(-1)"/>
                </div>
            </form>
        </div>

    </div>
</section>
<footer class="footer"></footer>
</footer>
<script th:src="@{/js/jquery.js}"></script>
<!--
	<script src="js/time.js"></script>
	-->
<script src="js/time.js"></script>
</body>
</html>